package com.yuzhi.master.sewage.rmstSz.service.Impl;

import java.time.LocalDateTime;
import java.time.Year;
import java.time.YearMonth;

public class test {
     public static void main(String[] args) {

         YearMonth currentYearMonth = YearMonth.now();
         LocalDateTime monthStart = currentYearMonth.atDay(1).atStartOfDay();
         LocalDateTime monthEnd = currentYearMonth.atEndOfMonth().atTime(23, 59, 59);

         System.out.println(">>>>>>start>>"+monthStart);
         System.out.println(">>>>>>monthEnd>>>>>"+monthEnd);


         Year currentYear = Year.now();
         LocalDateTime yearStart = currentYear.atDay(1).atStartOfDay();
         LocalDateTime yearEnd = currentYear.atMonth(12).atEndOfMonth().atTime(23, 59, 59);
         System.out.println(">>>>>>yearStart>>"+yearStart);
         System.out.println(">>>>>>yearEnd>>>>>"+yearEnd);
    }
}
